var database = require('../middleware/connection.js').db();

function Base(name,version) {
	Base.prototype.setName(name);
	this.version = version;
	//this.baseFunc();
}
Base.prototype.db = database;

Base.prototype.setName = function(name) {
	Base.prototype.name = name;
}

Base.prototype.baseFunc = function() {
	console.log(Base.prototype.name);
}

Base.prototype.setRR = function(req,res) {
	Base.prototype.req = req;
	Base.prototype.res = res;
}

module.exports = Base;